package com.glory.hikvisionmobile.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.hikvisionmobile.R;
import com.glory.hikvisionmobile.bean.TrackOut.XSortingAndBoundsBean;
import com.glory.hikvisionmobile.bean.search.WorkThingBean;

import java.util.List;

public class WorkThingListAdapter extends BaseQuickAdapter<WorkThingBean, BaseViewHolder> {

    public WorkThingListAdapter(@Nullable List<WorkThingBean> data) {
        super(R.layout.adapter_work_thing_list,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, WorkThingBean item) {
        int adapterPosition = helper.getAdapterPosition();
        helper.setText(R.id.tvNum,String.valueOf(adapterPosition + 1));
        helper.setText(R.id.tvLot,item.getLotId());
        helper.setText(R.id.tvQty,item.getMainQty());
        helper.setText(R.id.tvPriority,item.getPriority());
        helper.setText(R.id.tvLotType,item.getLotType());
        helper.setText(R.id.tvStageId,item.getStageId());
        helper.setText(R.id.tvPartDesc,item.getPartDesc());
        helper.setText(R.id.tvStepDesc,item.getStepDesc());
        helper.setText(R.id.tvPauseStatus,item.getHoldState());
        helper.setText(R.id.tvCurrentTime,item.getQueueTime());


    }


}
